﻿
	var i1 = "/images/1.png";
	var i2 = "/images/2.png";
	var i3 = "/images/3.png";
	var i4 = "/images/4.png";
	var i5 = "/images/5.png";
	var i6 = "/images/6.png";
	var i7 = "/images/7.png";
	var i8 = "/images/8.png";
	var i9 = "/images/9.png";
	var i10 = "/images/10.png";
	var begin = 1;
	var end = 6;
	function goBack(){
			if(begin > 1) {
					begin = begin - 2;
					end = end - 2;
			}
			doIt(begin);
		}
		
	function goForward(){
			if(end < 10) {
					end = end + 2;
					begin = begin + 2;
			}
			doIt(end);
		}
		
	function doIt(index) {
			switch(index) {
					case 1:
					case 6:
						document.getElementById("img_1").src = i1;
						document.getElementById("img_2").src = i2;
						document.getElementById("img_3").src = i3;
						document.getElementById("img_4").src = i4;
						document.getElementById("img_5").src = i5;
						document.getElementById("img_6").src = i6;
						
						document.getElementById("item_1").setAttribute("href", "#1");
						document.getElementById("item_2").setAttribute("href", "#2");
						document.getElementById("item_3").setAttribute("href", "#3");
						document.getElementById("item_4").setAttribute("href", "#4");
						document.getElementById("item_5").setAttribute("href", "#5");
						document.getElementById("item_6").setAttribute("href", "#6");
						
						document.getElementById("img_item_1").setAttribute("href", "#1");
						document.getElementById("img_item_2").setAttribute("href", "#2");
						document.getElementById("img_item_3").setAttribute("href", "#3");
						document.getElementById("img_item_4").setAttribute("href", "#4");
						document.getElementById("img_item_5").setAttribute("href", "#5");
						document.getElementById("img_item_6").setAttribute("href", "#6");
						
						document.getElementById("item_1").innerHTML = "Art Handmade Handscape Oil1";
						document.getElementById("item_2").innerHTML = "Art Handmade Handscape Oil2";
						document.getElementById("item_3").innerHTML = "Art Handmade Handscape Oil3";
						document.getElementById("item_4").innerHTML = "Art Handmade Handscape Oil4";
						document.getElementById("item_5").innerHTML = "Art Handmade Handscape Oil5";
						document.getElementById("item_6").innerHTML = "Art Handmade Handscape Oil6";
						
						document.getElementById("price_1").innerHTML = "$20.01";
						document.getElementById("price_2").innerHTML = "$20.02";
						document.getElementById("price_3").innerHTML = "$20.03";
						document.getElementById("price_4").innerHTML = "$20.04";
						document.getElementById("price_5").innerHTML = "$20.05";
						document.getElementById("price_6").innerHTML = "$20.06";
						break;
					case 3:
					case 8:
						document.getElementById("img_1").src = i3;
						document.getElementById("img_2").src = i4;
						document.getElementById("img_3").src = i5;
						document.getElementById("img_4").src = i6;
						document.getElementById("img_5").src = i7;
						document.getElementById("img_6").src = i8;
						
						document.getElementById("item_1").setAttribute("href", "#3");
						document.getElementById("item_2").setAttribute("href", "#4");
						document.getElementById("item_3").setAttribute("href", "#5");
						document.getElementById("item_4").setAttribute("href", "#6");
						document.getElementById("item_5").setAttribute("href", "#7");
						document.getElementById("item_6").setAttribute("href", "#8");
						
						document.getElementById("img_item_1").setAttribute("href", "#3");
						document.getElementById("img_item_2").setAttribute("href", "#4");
						document.getElementById("img_item_3").setAttribute("href", "#5");
						document.getElementById("img_item_4").setAttribute("href", "#6");
						document.getElementById("img_item_5").setAttribute("href", "#7");
						document.getElementById("img_item_6").setAttribute("href", "#8");
						
						document.getElementById("item_1").innerHTML = "Art Handmade Handscape Oil3";
						document.getElementById("item_2").innerHTML = "Art Handmade Handscape Oil4";
						document.getElementById("item_3").innerHTML = "Art Handmade Handscape Oil5";
						document.getElementById("item_4").innerHTML = "Art Handmade Handscape Oil6";
						document.getElementById("item_5").innerHTML = "Art Handmade Handscape Oil7";
						document.getElementById("item_6").innerHTML = "Art Handmade Handscape Oil8";
						
						document.getElementById("price_1").innerHTML = "$20.03";
						document.getElementById("price_2").innerHTML = "$20.04";
						document.getElementById("price_3").innerHTML = "$20.05";
						document.getElementById("price_4").innerHTML = "$20.06";
						document.getElementById("price_5").innerHTML = "$20.07";
						document.getElementById("price_6").innerHTML = "$20.08";
						break;
					case 5:
					case 10:
						document.getElementById("img_1").src = i5;
						document.getElementById("img_2").src = i6;
						document.getElementById("img_3").src = i7;
						document.getElementById("img_4").src = i8;
						document.getElementById("img_5").src = i9;
						document.getElementById("img_6").src = i10;
						
						document.getElementById("item_1").setAttribute("href", "#5");
						document.getElementById("item_2").setAttribute("href", "#6");
						document.getElementById("item_3").setAttribute("href", "#7");
						document.getElementById("item_4").setAttribute("href", "#8");
						document.getElementById("item_5").setAttribute("href", "#9");
						document.getElementById("item_6").setAttribute("href", "#10");
						
						document.getElementById("img_item_1").setAttribute("href", "#5");
						document.getElementById("img_item_2").setAttribute("href", "#6");
						document.getElementById("img_item_3").setAttribute("href", "#7");
						document.getElementById("img_item_4").setAttribute("href", "#8");
						document.getElementById("img_item_5").setAttribute("href", "#9");
						document.getElementById("img_item_6").setAttribute("href", "#10");
						
						document.getElementById("item_1").innerHTML = "Art Handmade Handscape Oil5";
						document.getElementById("item_2").innerHTML = "Art Handmade Handscape Oil6";
						document.getElementById("item_3").innerHTML = "Art Handmade Handscape Oil7";
						document.getElementById("item_4").innerHTML = "Art Handmade Handscape Oil8";
						document.getElementById("item_5").innerHTML = "Art Handmade Handscape Oil9";
						document.getElementById("item_6").innerHTML = "Art Handmade Handscape Oil10";
						
						document.getElementById("price_1").innerHTML = "$20.05";
						document.getElementById("price_2").innerHTML = "$20.06";
						document.getElementById("price_3").innerHTML = "$20.07";
						document.getElementById("price_4").innerHTML = "$20.08";
						document.getElementById("price_5").innerHTML = "$20.09";
						document.getElementById("price_6").innerHTML = "$20.10";
						break;
			}
		}